package com.bright.ghj.overt.pojo.vo;

import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @Author hxj
 * @Date 2024/1/18 15:50
 * @Description 保存数据后的返回结果
 */
@Data
public class SaveResultVO implements Serializable {

    private static final long serialVersionUID = 1L;

//    private Integer successRows = 0;
//    private Integer errorRows = 0;
    private boolean success = true;
    private String message = "保存成功";
    private List<String> infoList = new ArrayList<>(16);

    public void setSuccess(boolean success) {
        this.success = success;
        this.message = success ? "保存成功" : "校验未通过，保存失败";
    }
}
